// 应用配置
const config = {
  // 应用信息
  app: {
    title: "管理系统",
    version: "1.0.0",
    description: "用户端和管理端统一系统",
  },

  // API配置
  api: {
    // 开发环境
    development: {
      baseURL: "http://8.153.171.243:8961/exhib",
      timeout: 10000,
    },
    // 生产环境
    production: {
      baseURL: "http://8.153.171.243:8961/exhib",
      timeout: 10000,
    },
  },

  // 获取当前环境的API配置
  getApiConfig() {
    const env = import.meta.env.MODE || "production";
    return this.api[env] || this.api.production;
  },

  // 路由配置
  router: {
    // 用户端首页
    userHome: "/",
    // 管理端首页
    adminHome: "/admin/dashboard",
    // 登录页
    loginPage: "/login",
    // 管理端登录页
    adminLoginPage: "/admin/login",
  },

  // 存储配置
  storage: {
    tokenKey: "exhibition_token",
    userInfoKey: "exhibition_user_info",
    adminTokenKey: "exhibition_admin_token",
    adminUserInfoKey: "exhibition_admin_user_info",
  },

  // deepL
  deepL: {
    apiKey: "83c78372-5594-4295-8baf-db86e6a8db68:fx",
  },
};

export default config;
